<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var o = {
            name: 'andy'
        };

        function fn(arr) {
            console.log(this);
            console.log(arr); //打印的是字符串
        }
        fn.apply(o, ['pink']);
        var arr = [1, 33, 66, 77, 99, 4];
        // var max = Math.max.apply(null, arr);
        var max = Math.max.apply(Math, arr);
        console.log(max);
    </script>
</body>

</html>